//zed

print("*** start\n")

function test_switch(expr)
    var x = "fail"
    switch (expr)
       case "Oranges":
          x = "Oranges"
          break;
       case "Apples":
          x = "Apples"
          break;
       case "Bananas":
          x = "Bananas"
          break;
       case "Cherries":
          x = "Cherries";
          break;
       case "Mangoes":
       case "Papayas":
          x = "Mangoes"
          break;
       default:
          x = "default"
    end
    if (expr == x)
        print("OK")
    else
        print("FAIL")
    end
end

print("4 OK's:")
test_switch("Oranges")
test_switch("Bananas")
test_switch("Mangoes")
test_switch("default")

print("\n*** end ");
